package com.ahy231.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author ahy231
 * @date 2022/4/1 20:43
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("第一条消息")
public class FirstMessage {
    @ApiModelProperty("联系人id")
    private Long userId;
    @ApiModelProperty("联系人用户名")
    private String username;
    @ApiModelProperty("头像地址")
    private String imgUrl;
    @ApiModelProperty("最新消息")
    private String message;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("最新消息时间")
    private Date time;
}
